<template>
  <div style="">
      <!-- <top :pageTitle="pageTitle" style="position:fixed;top:0px;width:100vw"></top> -->
      <div style="padding:15px 0 0 0;background:#ffffff">
          <list v-for="(data,i) in dataList" :key='i' :data='data'></list>
        <!-- <list v-for="(data,i) in dataList" :key='i' :data='data' v-if="i < 2"></list> -->
        <div v-show="isShow" style="text-align:center;height:50px;line-height:50px;border-top:1px solid #fafafa" v-on:click="more($event)" class="more"><span>点击展示更多</span><img src="../assets/ic@2x.png"></div>
      </div>
      <tuikuan></tuikuan>
  </div>
</template>
<script>
import Top from '@/components/common/top.vue';
import List from '@/components/customerService/list.vue';
import Tuikuan from '@/components/customerService/tuikuan.vue';
import axios from 'axios';
console.log(List)
export default {
    name:'productDetail',
    components:{
        'List':List,
        'Tuikuan':Tuikuan,
        'Top':Top,
    },
    data () {
        return {
            dataList:[
            {id:1,imgUrl:'https://img.alicdn.com/bao/uploaded/i3/3085960453/TB2bmQFsVGWBuNjy0FbXXb4sXXa_!!3085960453-0-item_pic.jpg',size:'xl',color:'红色',num:1,price:300,title:'冬季羽绒服貂毛'},
            {id:2,imgUrl:'https://img.alicdn.com/bao/uploaded/i3/3085960453/TB2bmQFsVGWBuNjy0FbXXb4sXXa_!!3085960453-0-item_pic.jpg',size:'xxl',color:'白色',num:1,price:299,title:'冬季羽绒服貂毛'},
            {id:3,imgUrl:'https://img.alicdn.com/bao/uploaded/i3/3085960453/TB2bmQFsVGWBuNjy0FbXXb4sXXa_!!3085960453-0-item_pic.jpg',size:'l',color:'黑色',num:1,price:358,title:'冬季羽绒服貂毛'},
            {id:4,imgUrl:'https://img.alicdn.com/bao/uploaded/i3/3085960453/TB2bmQFsVGWBuNjy0FbXXb4sXXa_!!3085960453-0-item_pic.jpg',size:'s',color:'绿色',num:1,price:198,title:'冬季羽绒服貂毛'}
            ],
            isShow:true,
            pageTitle:'选择售后类型',
            time:'',
            device_id:'',
            verson:'',
            platform:'',
            token:'',
            page:0,
        }
    },
    computed:{
        
    },
    methods:{
        more:function(){
            if(this.isShow){
                this.isShow=false;
            }else{
                this.isShow=true;
            }
            
        }
    },
    created() {
        // this.time=
        this.$http.post('/api/api/user/returnList', 
        {
            time:'1532658064',
            device_id:'1532658064',
            version:'1.0.1',
            platform:'android',
            token:'69f7e6e2e95aaef9c58efb1fefdbba4b',
            page:1,
        })
        .then(function (response) {
            console.log('success:',response);
        })
        .catch(function (response) {
            console.log(response);
        })

    }
}
</script>
<style lang='scss'>

</style>